package com._520it.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter@Getter
public class Reviseinfo {
    //是否可疑订单
    public static final int DOUBTFUL_NO = 0;
    public static final int DOUBTFUL_YES = 1;
    //是否暂存单
    public static final int TEMP_NO = 0;
    public static final int TEMP_YES = 1;

    private Long id;
    //关联保单对象
    private Long orderBillId;

    private Long reviseid;

    private String reviseReason;  //批改原因
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date validityFrom;  //批改有效期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date validityTo;   //批改有效期

    private int doubtful;   //是否可以订单
    //关联客户对象
    private Long clientId;

    private String applyType;

    private String reviseinfo;

    private int temp;

    private Employee auditor;
}